import request from "@/utils/request";

// 直播列表
export function liveStreamingListApi(params) {
  return request({
    url: "/live/list",
    method: "GET",
    params,
  });
}

// 新增直播人员
export function addPersonnelApi(data) {
  return request({
    headers: { "Content-Type": "multipart/form-data" },
    url: "/live/addLive",
    method: "POST",
    data,
  });
}

// 停止直播
export function stopLiveStreamingApi(id) {
  return request({
    url: `/live/stopLive/${id}`,
    method: "PUT",
  });
}

// 单个查询
export function livePersonnelDatalisApi(id) {
  return request({
    url: `/live/selectLive/${id}`,
    method: "GET",
  });
}
